package com.xiake.zojcodesandbox.enums;

/**
 * 程序退出状态枚举类
 */
public enum ExitStatusEnum {
    SUCCESS(0, "正常退出"),
    COMPILE_ERROR(1, "编译错误"),
    RUNTIME_ERROR(2, "运行时错误"),
    TIMEOUT(3, "超时"),
    UNKNOWN_ERROR(4, "未知错误");

    private final int exitValue;
    private final String message;

    ExitStatusEnum(int exitValue, String message) {
        this.exitValue = exitValue;
        this.message = message;
    }

    public int getExitValue() {
        return exitValue;
    }

    public String getMessage() {
        return message;
    }


}

